import request from '@/utils/request'

// 查询订单管理列表
export function listOrderfrom(query) {
  return request({
    url: '/orders/orderfrom/list',
    method: 'get',
    params: query
  })
}

// 查询订单管理详细
export function getOrderfrom(id) {
  return request({
    url: '/orders/orderfrom/' + id,
    method: 'get'
  })
}
// 新增订单管理
export function addOrderfrom(data) {
  return request({
    url: '/orders/orderfrom',
    method: 'post',
    data: data
  })
}

// 修改订单管理
export function updateOrderfrom(data) {
  return request({
    url: '/orders/orderfrom',
    method: 'put',
    data: data
  })
}

// 删除订单管理
export function delOrderfrom(id) {
  return request({
    url: '/orders/orderfrom/' + id,
    method: 'delete'
  })
}


export function orderresponse(data) {
  return request({
    url: '/orders/orderfrom/orderresponse',
    method: 'post',
    data: data
  })
}


export function orderscoun(data) {
  return request({
    url: '/orders/orderfrom/orderscoun',
    method: 'post',
    data: data
  })
}

export function velocity(data) {
  return request({
    url: '/orders/orderfrom/velocity',
    method: 'post',
    data: data
  })
}

